package com.niiwoo.civet.account.dao.mapper;


import com.niiwoo.civet.account.dao.entity.WithholdOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WithholdOrderMapperExt extends WithholdOrderMapper{

    WithholdOrder selectByPrimaryKeyForUpdate(Long id);

    WithholdOrder selectOrderByRequestNo(String requestNo);

    WithholdOrder selectOrderByBatchRequestNo(String batchRequestNo);

    WithholdOrder selectByOrderId(Long orderId);

    List<WithholdOrder> selectWithholdOrderByFailStatus(@Param("createTime") String createTime, @Param("endTime")String endTime);

    int updateWithHoldOrderStatusToSuccess(WithholdOrder record);
}